#include<bits/stdc++.h>
using namespace std;
const int N=1510;
int n,m;
char a[N];
int main()
{
	freopen("magic.in","r",stdin);
	freopen("magic.out","w",stdout);
	scanf("%d%d%s",&n,&m,a+1);
	for(int i=1;i<=n;i++)
		if(a[i]=='.') putchar('0');
		else putchar(a[i]);
	fclose(stdin);fclose(stdout);
	return 0;
}
